#include "type.h"
#include "stdio.h"
#include "string.h"
#include "data.h"

static STM_DATA data;

STM_DATA * data_getData(void)
{
    return &data;
}

void data_Init(void)//初始化data数据
{
  STM_DATA *pData = data_getData();
  int i;
  u8 config_Line[]   =  {45,90,37,150};
  u8 config_Limit[]  =  {30,90,60,150,35,45,120,200};
  
  pData->ALARM_ENABLE = TRUE; //默认开启报警功能
  for(i=0; i<4; i++)
  {
    pData->Alarm_Line[i] = config_Line[i];
  }
  for(i=0; i<8; i++)
  {
    pData->Alarm_Limit[i] = config_Limit[i];
  }
  
  pData->temp_compensate = 4;
}
